package com.bookmall.dao;

import java.sql.SQLException;
import java.util.List;

import com.bookmall.entity.BookType;

public interface BookTypeDao extends BaseDao<BookType>{
	// 根据ids查询
	List<BookType> selectByIds(List<Integer> ids,int page,int pageSize) throws SQLException;
	// 批量删除
	int deleteByIds(List<Integer> ids) throws SQLException;
	
	//根据父类型查询子类型
	List<BookType> selectByParentId(int parentId,int page,int pageSize) throws SQLException;
	
	//根据类型名查询子类型
	List<BookType> selectByParentTypeName(String name,int page,int pageSize) throws SQLException;
}
